<?php

require_once 'Zend/View/Interface.php';

class Zend_View_Helper_LoggedUsername extends Zend_View_Helper_Abstract {

    public function loggedUsername() {
        $auth = Zend_Auth::getInstance();
        $userInfo = $auth->getIdentity();

        $html = "<a href='" . $this->view->url(array('module' => 'academico',
                    'controller' => 'usuario', 'action' => 'myaccount', 'username' => $userInfo['username'])) .
                "'><b>{$userInfo['username']}</b></a>";
        return $html;
    }

}

?>